package cn.whit.blog.service;

import java.sql.SQLException;
import java.util.List;

import cn.whit.blog.domain.Tcommit;
import cn.whit.blog.util.DynamicQuery;
import cn.whit.blog.util.PageModel;

public interface TcommitService {
	List<Tcommit> findAllWithPageAndQuery(int startIndex, int pageSize, DynamicQuery query) throws Exception;
	
	PageModel findAllByBlogIdWithPageAndQuery(int startIndex, int pageSize, DynamicQuery query,String blogid) throws Exception;

	int findTotalRecordsAndQuery(DynamicQuery query) throws Exception;

	PageModel findByPageAndQuery(int startIndex, int pageSize, DynamicQuery query) throws Exception;

	void save(Tcommit tcommit) throws SQLException;

	Tcommit findById(String id) throws SQLException;
}
